package com.gk.carshopsys.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

public class Car {
    //id
    @ExcelIgnore
    private Long id;
    //品牌
    @ExcelProperty(value = "品牌",index = 0)
    private String brand;
    //型号
    @ExcelProperty(value = "型号",index = 1)
    private String carname;
    //价格
    @ExcelProperty(value = "价格",index = 2)
    private Long price;
    //颜色
    @ExcelProperty(value = "颜色",index = 3)
    private String color;
    //挡位类型
    @ExcelProperty(value = "挡位类型",index = 4)
    private String type;
    //库存数量
    @ExcelProperty(value = "库存数量",index = 5)
    private Long quantity;
    //汽车参数配置
    @ExcelProperty(value = "汽车参数配置",index = 6)
    private String configuration;

    public Car() {
    }

    public Car(String brand, String carname, Long price, String color, String type, Long quantity, String configuration) {
        this.brand = brand;
        this.carname = carname;
        this.price = price;
        this.color = color;
        this.type = type;
        this.quantity = quantity;
        this.configuration = configuration;
    }

    public Car(Long id, String brand, String carname, Long price, String color, String type, Long quantity, String configuration) {
        this.id = id;
        this.brand = brand;
        this.carname = carname;
        this.price = price;
        this.color = color;
        this.type = type;
        this.quantity = quantity;
        this.configuration = configuration;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getCarname() {
        return carname;
    }

    public void setCarname(String carname) {
        this.carname = carname;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public String getConfiguration() {
        return configuration;
    }

    public void setConfiguration(String configuration) {
        this.configuration = configuration;
    }

    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", brand='" + brand + '\'' +
                ", carname='" + carname + '\'' +
                ", price=" + price +
                ", color='" + color + '\'' +
                ", type='" + type + '\'' +
                ", quantity=" + quantity +
                ", configuration='" + configuration + '\'' +
                '}';
    }
}
